#include "include.h"
#include "func.h"
#include "func_device.h"

AT(.text.func.device)
void func_device_message(u16 msg)
{
    switch (msg) {
    case KU_PLAY:
    case KU_PLAY_USER_DEF:
    case KU_PLAY_PWR_USER_DEF:
//        my_printf("pp\n");
        wireless_music_play_pause();
        break;

    case KL_PLAY_PWR_USER_DEF:
    case KL_PLAY_USER_DEF:
        break;

    case KU_PREV_VOL_DOWN:
    case KU_PREV_VOL_UP:
    case KL_VOL_DOWN_PREV:
    case KL_VOL_UP_PREV:
    case KU_PREV:
        wireless_music_prev();
        break;

    case KU_NEXT:
    case KU_NEXT_VOL_UP:
    case KU_NEXT_VOL_DOWN:
    case KL_VOL_UP_NEXT:
    case KL_VOL_DOWN_NEXT:
        wireless_music_next();
        break;

    case MSG_SYS_1S:
        break;

    default:
        func_message(msg);
        break;
    }
}
